﻿namespace LanqiQAwebapi.Interface
{
    public interface ICacheService
    {
        Task AddBlackTokenAsync(string uid, string Token);
        Task<bool> CheckTokenIsBlackeAsync(string uid);

        Task<bool> AddSendMessageAsync(string Phone, string MessageCode);
        Task<bool> IncrementAndCheckLimitAsync(string phoneNumber, int dailyLimit);

        Task<int> PGetSendMessageCountAsync(string phoneNumber);
        Task<string> GetPhoneMessageAsync(string phoneNumber, int count);
        Task GetHotquestionAsync(string Input);

        // void AddPhoneCode(string Pone);


    }
}
